package com.neuedu.wemall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.neuedu.wemall.common.vo.ResponseData;
import com.neuedu.wemall.dao.entity.Address;


/**
 * Author lu
 * Date   2025-09-08 15:17:25
 */

public interface IAddressService extends IService<Address> {
    /**
     * 创建地址
     * @param address
     * @return
     */
    ResponseData createAddress(Address address);

    /**
     * 修改地址
     * @param address
     * @return
     */
    ResponseData modifyAddress(Address address);

    /**
     * 删除地址
     * @param id 地址id
     * @param userId  用户id
     * @return
     */
    ResponseData deleteAddress(Integer id, Integer userId);
}